  @if($name == 'categories')
  <a data-toggle="modal" href="#modal-delete-{{ $data->cat_id }}" style="font-size:15px;">
    删除
  </a>
  <div id="modal-delete-{{ $data->cat_id }}" class="modal text-left fade">
  <div class="modal-dialog">
    <div class="modal-content">
      {{ Form::open(['method' => 'DELETE', 'route' => ["admin.$name.destroy", $data->cat_id]]) }}
  @else
  <a data-toggle="modal" href="#modal-delete-{{ $data->id }}" style="font-size:15px;">
      删除
  </a>
  <div id="modal-delete-{{ $data->id }}" class="modal text-left fade">
  <div class="modal-dialog">
    <div class="modal-content">
      {{ Form::open(['method' => 'DELETE', 'route' => ["admin.$name.destroy", $data->id]]) }}
  @endif
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h1 class="modal-title">删除数据？</h1>
      </div>
      <div class="modal-body">
        <p>
          您确定要删除该数据？
        </p>
      </div>
      <div class="modal-footer">
        <button type="submit" class="btn btn-primary">确定</button>
        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
      </div>
      {{ Form::close() }}
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
